# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-mdit-py-plugins
pkgver=0.3.0
pkgrel=0
pkgdesc="Collection of core plugins for markdown-it-py"
url="https://mdit-py-plugins.readthedocs.io/"
arch="noarch"
license="MIT"
depends="python3 py3-markdown-it-py"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://github.com/executablebooks/mdit-py-plugins/archive/v$pkgver/py3-mdit-py-plugins-$pkgver.tar.gz"
builddir="$srcdir/mdit-py-plugins-$pkgver"
options="!check" # needs py3-pytest-regressions

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=build/lib pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
dd6aa738c6d93e45437326b1be52e0a9fc411aa3beacb61690919c272979c97ac1b38116b1ebb01c7d8fe724d4af9621c81ccd45131a690df8a2c0c325eef0e8  py3-mdit-py-plugins-0.3.0.tar.gz
"
